ModuleInfo "Version: 0.1"
ModuleInfo "Main Author: Cal3d."
ModuleInfo "License: You are free to use this code as you please"
ModuleInfo "Please see readme.txt for more details"
import brl.blitz
import c3d.cal3d
import sidesign.minib3d
CB3DModel^Object{
.Skele:CalCoreSkeleton&
.CoreModel:CalCoreModel&
.CModel:CalModel&
.B3dModel:TMesh&
.Meshes:TList&
.Materials:TList&
.Anims:TList&
.MAnims:TList&
.cal_renderer:CalRenderer&
.isloaded@&
.rebuild@&
.SkeletonLoaded@&
.isanim@&
.SkeleFile$&
.SkeleName$&
-New%()="_c3d_calb3d_CB3DModel_New"
-SetSkeleton%(skel:CalCoreSkeleton)="_c3d_calb3d_CB3DModel_SetSkeleton"
-Animate%(id%=1)="_c3d_calb3d_CB3DModel_Animate"
-StopAnimation%(id%=1)="_c3d_calb3d_CB3DModel_StopAnimation"
-StopMorphAnimation%(id%=1)="_c3d_calb3d_CB3DModel_StopMorphAnimation"
-AnimateMorph%(id%=1)="_c3d_calb3d_CB3DModel_AnimateMorph"
-AddAnim:CB3DAnimation(anm:CalCoreAnimation)="_c3d_calb3d_CB3DModel_AddAnim"
-AddMorphAnim:CB3DMAnimation(anm:CalCoreAnimatedMorph)="_c3d_calb3d_CB3DModel_AddMorphAnim"
-AddMaterial:CB3DMaterial(cmat:CalCoreMaterial,matid%,texdir$=$"")="_c3d_calb3d_CB3DModel_AddMaterial"
-GetMaterial:CB3DMaterial(index%)="_c3d_calb3d_CB3DModel_GetMaterial"
-AddMesh:CB3DMesh(msh:CalCoreMesh)="_c3d_calb3d_CB3DModel_AddMesh"
-Build%()="_c3d_calb3d_CB3DModel_Build"
-Destroy%()="_c3d_calb3d_CB3DModel_Destroy"
-Update%(d#)="_c3d_calb3d_CB3DModel_Update"
}="c3d_calb3d_CB3DModel"
CB3DMesh^Object{
.MeshID%&
.B3dMesh:TMesh&
.CMesh:CalCoreMesh&
.surf:TSurface&[]&
.filename$&
.name$&
.isloaded@&
.parent:CB3DModel&
-New%()="_c3d_calb3d_CB3DMesh_New"
-PaintMaterial%(ii%,brush:TBrush)="_c3d_calb3d_CB3DMesh_PaintMaterial"
-Build@(ind%,v#&[],f@@&[])="_c3d_calb3d_CB3DMesh_Build"
-Update%(si%,v#&[],n#&[],t#&[])="_c3d_calb3d_CB3DMesh_Update"
}="c3d_calb3d_CB3DMesh"
CB3DMaterial^Object{
.B3dBrush:TBrush&
.Cmat:CalCoreMaterial&
.flags%&
.diffuse%&[]&
.matid%&
.isloaded@&
.filename$&
.name$&
.maps:TList&
-New%()="_c3d_calb3d_CB3DMaterial_New"
-AddMap%(map:CB3DTexture,id%)="_c3d_calb3d_CB3DMaterial_AddMap"
}="c3d_calb3d_CB3DMaterial"
CB3DTexture^Object{
.tex:TTexture&
.name$&
.blend%&
.id%&
.uvset%&
.parentmat:CB3DMaterial&
-New%()="_c3d_calb3d_CB3DTexture_New"
}="c3d_calb3d_CB3DTexture"
CB3DAnimation^Object{
.filename$&
.name$&
.isloaded@&
.id%&
.canim:CalCoreAnimation&
.parent:CB3DModel&
-New%()="_c3d_calb3d_CB3DAnimation_New"
}="c3d_calb3d_CB3DAnimation"
CB3DMAnimation^Object{
.filename$&
.name$&
.isloaded@&
.id%&
.canim:CalCoreAnimatedMorph&
.parent:CB3DModel&
-New%()="_c3d_calb3d_CB3DMAnimation_New"
}="c3d_calb3d_CB3DMAnimation"
